interface IGlobalStore {
  count: number
}

export const useGlobal = defineStore('global', {
  state: () => {
    const data = reactive<IGlobalStore>({
      count: 0,
    })

    return {
      ...toRefs(data),
    }
  },
  persist: {
    key: 'YKXBC-GLOBAL',
    // storage: 'localStorage',
  },
})
